package com.javasea.patterns.mario.state;

import com.javasea.patterns.mario.MarioStateContext;

public interface IMario {
    State getName();

    /**
     * E1 吃蘑菇
     * @param stateMachine
     */
    void obtainMushRoom(MarioStateContext stateMachine);

    /**
     * E2 获得斗篷
     * @param stateMachine
     */
    void obtainCape(MarioStateContext stateMachine);

    /**
     * 获得烟花
     * @param stateMachine
     */
    void obtainFireFlower(MarioStateContext stateMachine);

    /**
     * 遇到怪物
     * @param stateMachine
     */
    void meetMonster(MarioStateContext stateMachine);
}
